package cn.tanghom.content.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.data.jpa.domain.AbstractPersistable;
import org.springframework.format.annotation.DateTimeFormat;

import cn.tanghom.app.system.model.User;
import lombok.Data;

@Entity
@Table(name = "t_dashboard",schema="db_bpm")
@Data
public class Dashboard implements Serializable{	
	
	@Id	
	@Column(name = "key", unique = true)		
	String key;
	String label;
	
	@Column(name = "type", length = 32)
	//@Enumerated(EnumType.STRING)
	String type;
	
	//内容的ID
	Long cid;	
	String content;
	String format;
	String icon = "fa-anchor";
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	@Column(name = "create_time")
	Date createTime;

}
